<%@ page language="java" import="java.util.*,com.vallis.model.*" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	pageContext.setAttribute("path", request.getContextPath());
%>

<% Customer user=(Customer)session.getAttribute("User");
 if(user==null){ response.sendRedirect("login.jsp"); 
}%>

<!DOCTYPE HTML>
<html>
  <head>
     <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1">
    <title>我的代理</title>
 <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">

<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60499",secure:"60202"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
  <body  data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-12" data-genuitec-path="/customer Maven Webapp/src/main/webapp/mypage.jsp">
  	<script src="js/jquery-1.12.3.min.js" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-12" data-genuitec-path="/customer Maven Webapp/src/main/webapp/mypage.jsp"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.ie8polyfill.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.ie8polyfill.min.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.widgets.helper.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.widgets.helper.min.js"></script>
  <header data-am-widget="header"
          class="am-header am-header-default am-header-fixed">
      <div class="am-header-left am-header-nav">
          <a href="index" class="">
              <span class="am-header-nav-title">
                首页
              </span>

                <i class="am-header-icon am-icon-home"></i>
          </a>
      </div>

      <h1 class="am-header-title">
          公司
      </h1>

        <nav data-am-widget="menu" class="am-menu  am-menu-dropdown1"  
     data-am-menu-collapse
    
    
    
    > 
    <a href="javascript: void(0)" class="am-menu-toggle">
          <i class="am-menu-toggle-icon am-icon-list"></i>
    </a>


     <!-- <ul class="am-menu-nav am-avg-sm-1 am-collapse">
          <li class="am-parent">
            <a href="##" class="" >公司</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-2 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                  
                  <li class="am-menu-nav-channel"><a href="##" class="" title="公司">进入栏目 &raquo;</a></li>
              </ul>
          </li>
          <li class="am-parent">
            <a href="##" class="" >人物</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-3 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                  
              </ul>
          </li>
          <li class="am-parent">
            <a href="#c3" class="" >趋势</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-4 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                 
                  <li class="am-menu-nav-channel"><a href="#c3" class="" title="趋势">泥煤 &raquo;</a></li>
              </ul>
          </li>
          <li class="am-parent">
            <a href="##" class="" >投融资</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-3 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                
              </ul>
          </li>
          <li class="">
            <a href="##" class="" >创业公司</a>
          </li>
          
      </ul>-->

  </nav>

  </header>
<div> 
<!--  <div class="am-g am-g-fixed">
  <div class="am-u-sm-6"><span style="font-size:6px">代理等级：${thisc.agentlevel } 代理数：${myafter }</span></div>
   <div class="am-u-sm-6"><span style="font-size:6px">搜索</span>
  <div class="am-input-group">
      <span class="am-input-group-btn">
        <button class="am-btn am-btn-default" type="button" style="width:20px;"><span class="am-icon-search"></span> </button>
      </span>
      <input type="text" class="am-form-field" style="width:80px;">
    </div>
  
  </div>
  </div>-->



<div class="am-g">
  <div class="am-u-lg-6">
    <div class="am-input-group am-input-group-danger">
      <span style="font-size:6px">代理等级：${thisc.agentlevel }级， 代理数：${myafter }</span>
    </div>
  </div>
 <!--  <div class="am-u-lg-6">
    <div class="am-input-group am-input-group-primary">
      <span class="am-input-group-btn">
        <button class="am-btn am-btn-primary" type="button"><span class="am-icon-search"></span></button>
      </span>
      <input type="text" class="am-form-field" style="width:80px;">
    </div>
  </div> -->
</div>


<table id="idData" class="am-table" >

<tr class="am-success">

<th>授权码</th>
<th>姓名</th>
<th>手机号</th>
<th>等级</th>
</tr>
<c:forEach items="${allCu}" var="customer">
<tr>
<td>${customer.sn } </td>
<td>${customer.name }</td>
<td>${customer.phone }</td>
<td>${customer.agentlevel }</td>
</tr>
</c:forEach>
</table>

<div id="footer" class="am-g" >
<div class="am-u-sm-6 am-u-sm-centered"  >
							<div class="">
								
									<ul class="am-pagination">
										<li class="am-active"><a class="am-badge am-badge-success" href="${path}/myafterPage?thiscid=${thisc.id }&pn=1">首页</a></li>
										<c:if test="${pageInfo.hasPreviousPage }">
											<li class="am-active"><a class="am-badge am-badge-success"
												href="${path}/myafterPage?thiscid=${thisc.id }&pn=${pageInfo.pageNum-1}"
												aria-label="Previous"> <span aria-hidden="true">&laquo;</span>
											</a></li>
										</c:if>

										<c:forEach items="${pageInfo.navigatepageNums }"
											var="page_Num">
											<c:if test="${page_Num == pageInfo.pageNum }">
												<li class="am-active"><a  class="am-badge am-badge-success" href="#">${ page_Num}</a></li>
											</c:if>
											
										</c:forEach>
										<c:if test="${pageInfo.hasNextPage }">
											<li class="am-active"><a class="am-badge am-badge-success"
												href="${path}/myafterPage?thiscid=${thisc.id }&pn=${pageInfo.pageNum+1}"
												aria-label="Next"> <span aria-hidden="true">&raquo;</span>
											</a></li>
										</c:if>
										<li class="am-active"><a  class="am-badge am-badge-success" href="${path}/myafterPage?thiscid=${thisc.id }&pn=${pageInfo.pages}">末页</a></li>
									</ul>
								
								<div class="clearfix"></div>
							</div>
							
							

						</div>	


</div>
<!-- <div class="am-g">
  <div class="am-u-sm-11 am-u-sm-centered"><a class="am-btn am-btn-success am-radius"href="toAddCustomer?cid=${thisc.id}">添加</a></div>
</div> -->

</div>
<!-- .am-u-sm-centered 始终居中 -->



<script>
	function select(){
	var sel=document.getElementById("selectNum");
	var num=sel.value;
	
window.location = '${path}/myafterPage?thiscid=${thisc.id }&pn='+num;
}
	
	</script>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "
      id="">
      <ul class="am-navbar-nav am-cf am-avg-sm-4">
          <li >
            <a href="index" class="">
                  <span class="am-icon-home am-icon-lg"></span>
                <span class="am-navbar-label">首页</span>
            </a>
          </li>
          <li data-am-navbar>
            <a href="news.jsp" class="">
                  <span class="am-icon-search am-icon-lg"></span>
                <span class="am-navbar-label">资讯</span>
            </a>
          </li>
          <li data-am-navbar>
            <a href="about.jsp" class="">
                  <span class="am-icon-wpforms am-icon-lg"></span>
                <span class="am-navbar-label">关于我们</span>
            </a>
          </li>
          <!-- <li >
            <a href="https://github.com/allmobilize/amazeui" class="">
                  <span class="am-icon-github"></span>
                <span class="am-navbar-label">GitHub</span>
            </a>
          </li>
          <li >
            <a href="http://amazeui.org/getting-started" class="">
                  <span class="am-icon-download"></span>
                <span class="am-navbar-label">下载使用</span>
            </a>
          </li>
          <li >
            <a href="https://github.com/allmobilize/amazeui/issues" class="">
                  <span class="am-icon-location-arrow"></span>
                <span class="am-navbar-label">Bug 反馈</span>
            </a>
          </li>-->
      </ul>
  </div>
  </body>
</html>
